package com.car.demo.model;


import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.sql.Timestamp;

@Document(collection = "cars")
public class CarEntity implements Serializable {
    @Getter @Setter  @Id private String id;
    @Getter @Setter @Field("name")  private String name;
    @Getter @Setter @Field("time") private Timestamp time;
    @Getter @Setter @Field("lat") private double lat;
    @Getter @Setter @Field("lng") private double lng;
}
